package io.wdb.modules.generator.generator.dao;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import io.wdb.common.utils.Query;
import io.wdb.modules.generator.generator.entity.AccountCashLogEntity;
import io.wdb.modules.generator.generator.entity.customer.AccountCashLogCustomer;
import io.wdb.modules.generator.generator.entity.statistics.CapitalStatistics;
import io.wdb.modules.generator.generator.entity.web.DaysQueryRequest;
import io.wdb.modules.manager.sys.dao.BaseDao;


/**
 * 现金账户变动记录表
 * 
 * @author wdb
 * @email admin@wdb007.com
 * @date 2017-11-30 15:15:37
 */
@Mapper
public interface AccountCashLogDao extends BaseDao<AccountCashLogEntity> {
	
	List<AccountCashLogCustomer> queryRecord(Query query);

	int queryTotalRecord(Query query);

	BigDecimal getIncomeCount(Long id);

	BigDecimal getExpendCount(Long id);

	BigDecimal newActiveExpend(Map<String, Object> params);

	String daysTotalActiveCash(DaysQueryRequest daysQueryRequest);

	String daysEachActiveCash(DaysQueryRequest daysQueryRequest);

	CapitalStatistics daysActiveCash(DaysQueryRequest daysQueryRequest);
	
}
